//
// Created by kero-ly on 2020/6/13.
//

#include "utils.h"

void timer::tic() {
    t1 = steady_clock::now();
}

void timer::toc() {
    t2 = steady_clock::now();
    duration<double> time_span = duration_cast<duration<double>>(t2 - t1);
    printf("Time span: %2.8f seconds.  ", time_span.count());
    //std::cout << "Time span:" << time_span.count() << " seconds.\t";
    //t1 = steady_clock::now();
}
